﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SchoolAdminSearcherRoomList.aspx.cs"
    Inherits="ClassRoomManagement_SchoolAdminSearcherRoomList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../Css/ys.css" rel="stylesheet" type="text/css" />

    <script src="../Js/jquery-1.4.2.min.js" type="text/javascript"></script>

    <script src="../Js/tablehover.js" type="text/javascript"></script>

    <script language="javascript" src="../My97DatePicker/WdatePicker.js"></script>

    <script type="text/javascript" language="javascript">
        function swithTab(liId) {
            $("#tabList").find("li").each(function() { $(this).removeClass(); });
            $("#" + liId).addClass("hover");
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div style="margin-left: 5px">
            <div class="title">
                <div class="titleLeft">
                    教室查看</div>
            </div>
            <div id="search" class="search2">
                <table cellspacing="1" cellpadding="3" border="0">
                    <tr>
                        <td class="noWrapTD">
                            按教室名查找：
                        </td>
                        <td>
                            <asp:TextBox ID="TxtCheckRoom" CssClass="inp1" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            <asp:Button ID="BtCheck" runat="server" Text="查找" OnClick="BtCheck_Click" CssClass="button" />
                        </td>
                        <td>
                            <asp:Button ID="btnTeachers" runat="server" Text="查看教师列表" CssClass="button" OnClick="btnTeachers_Click"
                                Width="90px" Style="display: none" />
                        </td>
                        <td>
                            &nbsp; &nbsp;
                        </td>
                    </tr>
                </table>
            </div>
            <br class="sp3px" />
            <table>
                <tr>
                    <td>
                        <div id="ht">
                            <ul id="tabList">
                                <li class="hover" id="tab1"><a href="?IsPublished=1">已发布</a> </li>
                                <li id="tab2"><a href="?IsPublished=0">待审核</a></li>
                            </ul>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Panel ID="Panel1" runat="server" Height="189px" Width="926px">
                            <table class="tab_alt" style="width: 100%" cellpadding="0" cellspacing="0">
                                <tr class="header">
                                    <td class="noWrapTD">
                                        操作
                                    </td>
                                    <td class="noWrapTD">
                                        教室名称
                                    </td>
                                    <td class="noWrapTD">
                                        隶属学校
                                    </td>
                                    <td class="noWrapTD">
                                        状态
                                    </td>
                                    <td class="noWrapTD">
                                        教室编号
                                    </td>
                                    <td class="noWrapTD">
                                        摄像头产品号
                                    </td>
                                    <td class="noWrapTD">
                                        摄像头编号
                                    </td>
                                    <td class="noWrapTD">
                                        摄像头分辨率
                                    </td>
                                </tr>
                                <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="repNews_ItemDataBound"
                                    OnItemCommand="repNews_ItemCommand">
                                    <ItemTemplate>
                                        <tr class="<%# Container.ItemIndex%2==1?"odd":"" %>">
                                            <td>
                                                <asp:LinkButton CssClass="button2" ID="btnUpdate" runat="server" CommandArgument='<%#Eval("ID")%>'
                                                    OnCommand="btnUpdate_Click" Text="修改信息"></asp:LinkButton><asp:LinkButton CssClass="button2"
                                                        ID="btnDelete" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ID") %>'
                                                        OnCommand="btnDelete_Command" OnClientClick='return confirm("确定要删除么？")' Text="删除"></asp:LinkButton>
                                                <asp:LinkButton CssClass="button2" ID="btnIsPublished" runat="server" CommandArgument='<%# Eval("ID")+"|"+Eval("IsPublished")%>'
                                                    CommandName="SetIsPublished" Text="禁用"></asp:LinkButton>
                                            </td>
                                            <td class="ta2">
                                                <%#Eval("VR_roomName")%>&nbsp;
                                            </td>
                                            <td class="ta2">
                                                <%# GetSchNameByID((int)Eval("SchoolID"))%>&nbsp;
                                            </td>
                                            <td class="ta2">
                                                <%#Eval("IsPublished").ToString() == "1" ? "发布" : "禁用"%>
                                            </td>
                                            <td class="ta2">
                                                <%#Eval("VR_roomCode")%>&nbsp;
                                            </td>
                                            <td class="ta2">
                                                <%#Eval("VR_cameraPN")%>&nbsp;
                                            </td>
                                            <td class="ta2">
                                                <%#Eval("VR_cameraCode")%>&nbsp;
                                            </td>
                                            <td class="ta2">
                                                <%#Eval("VR_cameraImgSize")%>&nbsp;
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </table>
                            <br class="sp3px" />
                            <webdiyer:AspNetPager ID="pager" runat="server" OnPageChanged="pager_PageChanged"
                                PageSize="20">
                            </webdiyer:AspNetPager>
                        </asp:Panel>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
